<?php

class Models_JournalDataStorage
        extends Zend_Db_Table_Abstract {

    protected $_name = 'JournalDataStorage';
    protected $_primary = array(
        'PatientId',
        'ParameterId',
        'Date'
    );
    protected $_referenceMap = array(
        'Patients' => array(
            'columns' => 'PatientId',
            'refTableClass' => 'Models_Patients',
            'refColumns' => 'UserId'
        ),
        'Parameters' => array(
            'columns' => 'ParameterId',
            'refTableClass' => 'Models_Parmaeters',
            'refColumns' => 'ParameterId'
        )
    );
}